var $isWeChat = function (){
    var result;
    var ua = navigator.userAgent.toLowerCase();
    if(ua.match(/MicroMessenger/i)=="micromessenger") {
        result =  true;
    } else {
        result = false;
    }
    window.isWeChat = result;
}
